Mask ROIs can be used in a number of different contexts — such as for training and applying Deep Learning models, computing Watersheds, and processing image data for an in-depth analysis. When applied, masks limit computations to a subset of the original data, which can help reduce processing times and increase accuracy.
You can create a mask ROI in a number of ways. You can create mask ROIs directly in the Create Mask panel (see Creating Mask ROIs in the Create Mask Panel) or you can create mask ROIs from shapes (see Creating Mask ROIs from Shapes).
In this case, the resulting mask ROI is a new region of interest with the same shape as the selected image data and that is fully labeled within the selected range and increment.
Right-click the required image data in the Data Properties and Settings panel and then choose Create Mask in the pop-up menu to open the Create Mask panel, shown below.
Create Mask panel
Note At a setting of '1', all slices within the selected range will be labeled. At a setting of '2', every second slice will be labeled, at a setting of '3', every third slice will be labeled, and so on.
A new region of interest, with the same shape as the selected image data and that is fully labeled within the selected range and increment, is added to the Data Properties and Settings panel.
Two options are available for creating mask ROIs from shapes — you can remove all labeled voxels from a selected region of interest that are outside of a shape (see Creating Mask ROIs by Removing Labeled Voxels from an ROI), or you can add labeled voxels to a selected ROI that are inside a shape (see Creating Mask ROIs by Adding Labeled Voxels to an ROI).
In this case, you will be removing all of the labeled voxels from a selected region of interest that are outside of a shape, such as a box, cylinder, or sphere.
Original ROI and shape (on left) and Mask ROI (on right)

The shape is added to the Data Properties and Settings panel and appears in the workspace.

All labeled voxels that are outside of the shape are removed from the selected ROI.
In this case, you will be adding labeled voxels to a selected region of interest that are within a shape, such as a box, cylinder, or sphere.
Defined shape (on left) and after creating a mask ROI (on right)
The new ROI, which does not contain any labeled voxels, is added to the Data Properties and Settings panel.

The shape is added to the Data Properties and Settings panel and appears in the workspace.


All voxels that are inside the shape are labeled.